/* Xue.module.css - 智绘师学习机页面样式 */

.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 头部导航 */
.header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
}

.backButton {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #333;
  margin-right: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.backButton:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateX(-2px);
}

.title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

/* 主要内容区域 */
.mainContent {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 产品展示区域 */
.productDisplay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* 产品图片 */
.imageContainer {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.productImage {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.productImage:hover {
  transform: scale(1.02);
}

/* 产品信息 */
.productInfo {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.productTitle {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.productDescription {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 产品特点网格 */
.featuresGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.featureCard {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.featureCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #1890ff;
}

.featureIcon {
  font-size: 24px;
  margin-bottom: 10px;
}

.featureTitle {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.featureText {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* 按钮容器 */
.buttonContainer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primaryButton {
  padding: 12px 30px;
  font-size: 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 120px;
}

.primaryButton:hover {
  background-color: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.secondaryButton {
  padding: 12px 30px;
  font-size: 16px;
  background-color: white;
  color: #1890ff;
  border: 2px solid #1890ff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 120px;
}

.secondaryButton:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 144, 255, 0.2);
}

/* 平板适配 (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 15px;
  }
  
  .mainContent {
    padding: 25px;
  }
  
  .title {
    font-size: 22px;
  }
  
  .productTitle {
    font-size: 26px;
  }
  
  .featuresGrid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
}

/* 移动端适配 (481px - 768px) */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header {
    margin-bottom: 15px;
  }
  
  .backButton {
    font-size: 16px;
    margin-right: 10px;
  }
  
  .title {
    font-size: 20px;
  }
  
  .mainContent {
    padding: 20px;
    border-radius: 8px;
  }
  
  .productDisplay {
    gap: 25px;
  }
  
  .productTitle {
    font-size: 24px;
  }
  
  .productDescription {
    font-size: 15px;
  }
  
  .featuresGrid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
  }
  
  .featureCard {
    padding: 15px;
  }
  
  .buttonContainer {
    margin-top: 30px;
    flex-direction: column;
    align-items: center;
  }
  
  .primaryButton,
  .secondaryButton {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
  }
}

/* 小屏移动端适配 (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 8px;
  }
  
  .header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .backButton {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .title {
    font-size: 18px;
  }
  
  .mainContent {
    padding: 15px;
  }
  
  .productDisplay {
    gap: 20px;
  }
  
  .productTitle {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .productDescription {
    font-size: 14px;
  }
  
  .featuresGrid {
    margin-top: 20px;
  }
  
  .featureCard {
    padding: 12px;
  }
  
  .featureIcon {
    font-size: 20px;
  }
  
  .featureTitle {
    font-size: 16px;
  }
  
  .featureText {
    font-size: 13px;
  }
  
  .buttonContainer {
    margin-top: 25px;
    gap: 12px;
  }
  
  .primaryButton,
  .secondaryButton {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .backButton,
  .primaryButton,
  .secondaryButton {
    min-height: 44px;
    min-width: 44px;
  }
  
  .featureCard:hover {
    transform: none;
  }
  
  .productImage:hover {
    transform: none;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .productImage {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .backButton,
  .primaryButton,
  .secondaryButton,
  .featureCard,
  .productImage {
    transition: none;
  }
  
  .featureCard:hover,
  .productImage:hover,
  .primaryButton:hover,
  .secondaryButton:hover {
    transform: none;
  }
}